/* Made by ShingingDB 
   Map: 50000 (Maple Road: Dangerous Forest)
   Npc: Robin
*/

void npc(Player @player, NPC @npc) {
	if(npc.getState() == 0){
		npc.addText("Now... Ask me any questions you might have on traveling!\r\n#L0##bHow do I move?#l\r\n#L1#How do I take down the monsters?#l\r\n#L2#How can I pick up an item?#l\r\n#L3#What happens when I die?#l\r\n#L4#When can I choose a job?#l\r\n#L5#Tell me more about this island!#l\r\n#L6#What should I do to become a Warrior?#l\r\n#L7#What should I do to become a Bowman?#l\r\n#L8#What should I do to become a Magician?#l\r\n#L9#What should I do to become a Thief?#l\r\n#L10#How do I raise the character stats? (S)#l\r\n#L11#How do I check the items that I just picked up?#l\r\n#L12#How do I put on an item?#l\r\n#L13#How do I check out the items that I'm wearing?#l\r\n#L14#What are skills? (K)#l\r\n#L15#How do I get to Victoria Island?#l\r\n#L16#What are mesos?#l#k");
		npc.sendSimple();
		}
	else if(npc.getState() == 1){
		if(npc.getSelected() == 0){ // How do I move?
			npc.addText("Alright this is how you move; use #bleft, right arrow#k to move around the flatland and slanted roads, and press #bAlt#k to jump. #rA selected number of shoes improve your speed and jumping abilities.#k");
			npc.sendOK();
			npc.end();
		}
		else if(npc.getSelected() == 1){ // How do I take down monsters?
			npc.addText("Here's how to take down a monster; every monster possesses a certain amount of #rHP#k and you'll take them down by attacking them with either a weapon or through a spell. #rThe stronger they are, the harder it is to take them down.#k");
			npc.sendNext();	
		}
		else if(npc.getSelected() == 2){ // How do I pick up an item?
			npc.addText("This is how you pick up an item; Once you take down a monster, an item will be dropped on the ground. When that happens, stand in front of the item and press #bZ#k or #b0 on the Numpad#k to acquire the item.");
			npc.sendNext();
		}
		else if(npc.getSelected() == 3){ // What happens when I die?
			npc.addText("You will become a ghost when your HP reaches 0. There will be a tombstone at the spot you died, and you won't be able to move, although you still will be able to chat.");
			npc.sendNext();
		}
		else if(npc.getSelected() == 4){ // When may I choose a job?
			npc.addText("You can make the job advancement as a #rMagician#k when you reach level 8. For the other jobs, you have to be level 10.");
			npc.sendNext();
		}
		else if(npc.getSelected() == 5){ // Tell me more about this island!
			npc.addText("This island is named Maple Island, and it floats in the air. It's been floating in the sky for a while so the nasty monsters aren't really around. It's a very peaceful island, perfect for beginners!");
			npc.sendNext();
		}
		else if(npc.getSelected() == 6){ // What should I do to become a #bWarrior#k?
			npc.addText("You want to become a #bWarrior#k? Hmmm, then I suggest you head over to Victoria Island. Then head over to a warrior-town called #rPerion#k and see #bDances with Balrog#k. He will teach you all about how to become a true Warrior. Oh, and one #rVERY#k important thing. You will need to be at least level 10 in order to become a #bWarrior#k!");
			npc.sendOK();
			npc.end();
		}
		else if(npc.getSelected() == 7){ // What should I do to become a #bBowman#k?
			npc.addText("You want to become a #bBowman#k? Hmmm, then I suggest you head over to Victoria Island. Then head over to a bowman-town called #rHenesys#k and talk to the beautiful #bAthena Pierce#k to learn the ins and outs of being a #bBowman#k. Oh, and one #rVERY#k important thing. You will need to be at least level 10 in order to become a #bBowman#k!");
			npc.sendOK();
			npc.end();			
		}
		else if(npc.getSelected() == 8){ // What should I do to become a #bMagician#k?
			npc.addText("You want to become a #bMagician#k? Hmmm, then I suggest you head over to Victoria Island. Then head over to a magician-town called #rEllinia#k, and at the very top lies the Magic Library. Inside you will meet the head of all Wizards, #bGrendel the Really Old#k, who will teach you everything about become a #bMagician#k! Oh, and one #rVERY#k important thing. You will need to be at least level 8 in order to become a #bMagician#k!");
			npc.sendNext();
			npc.end();
		}
		else if(npc.getSelected() == 9){ // What should I do to become a Thief?
			npc.addText("You want to become a #bThief#k? Hmmm, then I suggest you head over to Victoria Island. Then head over to a thief-town called #rKerning City#k and on the more shady side of town, you will see a Thief's hideaway. There, you will meet the #bDark Lord#k, who will teach you everything about being a #bThief#k. Oh, and one #rVERY#k important thing. You will need to be at least level 10 in order to become a #bThief#k!");
			npc.sendOK();
			npc.end();
		}
		else if(npc.getSelected() == 10){ // How do I raise the character stats? (S)
			npc.addText("First press #bS#k to check out the ability window. Every time you level up, you will be awarded with 5 ability points aka #rAP#k. Assign the #rAP#k to the ability to your choice. It's that simple.");
			npc.sendNext();
		}
		else if(npc.getSelected() == 11){ // How do I check the items that I just picked up?
			npc.addText("When you defeat a monster, it will drop an item on the ground, and you may press #bZ#k to pick up the item. That item will then be stored in your item inventory, and you can take a look at it by simply pressing #bI#k.");
			npc.sendOK();
			npc.end();
		}
		else if(npc.getSelected() == 12){ // How do I put on an item?
			npc.addText("Press #bI#k to check out your item inventory. Place your mouse cursor on top of an item and double-click it to put it on your character. If you find yourself unable to wear the item, chances are your character does not meet the level & stat requirements. You can also put on the item by opening the equipment inventory (#bE#k) and dragging the item into it. To take off an item, double-click on the item in the equipment inventory.");
			npc.sendOK();
			npc.end();
		}
		else if(npc.getSelected() == 13){ // How do I check out the items that I'm wearing?
			npc.addText("Press #bE#k to open the equipment inventory, where you will see exactly what you are wearing right at this moment. To take off an item, double-click on the item. The item will then be sent to the item inventory.");
			npc.sendOK();
			npc.end();
		}
		else if(npc.getSelected() == 14){ // What are skills? (K)
			npc.addText("The special 'abilities' you get after acquiring a job are called skills. You will acquire skills that are specifically for that job. You're not at that stage yet, so you don't have any skills yet, but just remember that to check on your skills, press #bK#k to open the skill book. It will help you later on.");
			npc.sendOK();
			npc.end();
		}
		else if(npc.getSelected() == 15){ // How do I get to Victoria Island?
			npc.addText("You can go to Victoria Island through a ship ride from Southperry. It heads to Lith Harbor. Press #bW#k to see the World Map, and you'll see where you are on the island. Locate Southperry and that's where you'll need to go. You'll also need some mesos for the ride, so you may need to hunt some monsters around here!");
			npc.sendOK();
			npc.end();
		}
		else if(npc.getSelected() == 16){ // What are Mesos?
			npc.addText("Mesos are the currency used in MapleStory! You may purchase items through Mesos. To earn them, you may defeat monsters, sell items at the shop, or complete quests.");
			npc.sendOK();
			npc.end();
		}
	}
	else if(npc.getState() == 2){
	if (npc.getSelected() == 1){ // How do I take down monsters?
		npc.addText("In order to attack the monsters, you will need to be equipped with a weapon. When equipped, press #bCtrl#k to use the weapon. With the right timing, you'll be able to easily take down monsters.");
		npc.sendBackNext();		
		}
	else if(npc.getSelected() == 2){ // How do I pick up an item?
			npc.addText("Remember, if your item inventory is full, you won't be able to acquire anymore items! So if you have an item that you don't need, sell it. The inventory may expand once you make the job advancement.");
			npc.sendBackOK();
		}
		else if(npc.getSelected() == 3){ // What happens when I die?
			npc.addText("There isn't much to lose when you die if you are just a Beginner. Once you have a job, however, that is a different story. You will lose a portion of your #rEXP#k when you die, so make sure you avoid danger and death!");
			npc.sendBackOK();
		}
		else if(npc.getSelected() == 4){ // When do I choose a job?
			npc.addText("When you become level 10, you must go talk to either of the 5 elders in 5 different areas, but if you are level 8, you may become a Magician by talking to #bGrendel The Really Old#k.");
			npc.sendBackOK();
		}
		else if(npc.getSelected() == 5){ // Tell me more about this island!
			npc.addText("However, if you want to be a powerful player, you better not think about staying here for too long. You won't be able to get a job! Underneath this island lies another much bigger island, called #bVictoria Island#k.");
			npc.sendBackNext();
		}
		else if(npc.getSelected() == 8){ // What should I do to become a Magician?
			npc.addText("Oh by the way, unlike other jobs, to become a magician, you only need to be at level 8. What comes with making this job advancement early also comes with the fact that it takes a lot to become a true powerful mage. Think long and carefully before choosing your path.");
			npc.sendBackOK();
		}
		else if(npc.getSelected() == 10){ // How do I raise the character stats? (S)
			npc.addText("Place your mouse cursor on top of all abilities for a brief explanation. For example, STR for warriors, DEX for bowman, INT for magician, and LUK for thief. That itself isn't everything you need to know, so you will need to think long and hard on how to emphasize your character's strengths through assigning the points, or you could press the #bAuto-Assign AP#k button for us to decide it for you based on average calculations.");
			npc.sendBackOK();
		}
	}
	if(npc.getState() == 3){ 
		if (npc.getSelected() == 1){// How do I take down monsters?
		npc.addText("Once you make the job advancement, you will acquire different kinds of skills, and you can store them as hotkeys for easier access. If it's an attacking skill, you don't need to press #rCtrl#k to attack, just the button assigned as a hotkey.");
			npc.sendBackOK();			
		}
		else if(npc.getSelected() == 5){ // Tell me more about this island!
			npc.addText("On the east of this island there's a harbor called Southperry. There, you will find a ship that flies in the air. In front of the ship stands a captain. Ask him about flying to Victoria Island.");
			npc.sendBackNext();
		}
	}
	if(npc.getState() == 4){ 
		if(npc.getSelected() == 5){ // Tell me more about this island!
			npc.addText("Oh yeah! One last piece of information. If you are not sure where you are, press #bW#k. The world map will pop up with the locator showing where you stand. You won't have to worry about getting lost with that.");
			npc.sendBackOK();
		}
	}
}